<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        a {
            display: inline-block;
            text-decoration: none;
            color: aliceblue;
            line-height: 50px;
            text-align: center;
            width: 130px;
            height: 60px;

        }

        /* 复合属性写法 */
        .demo1 {
            background: url(../材料/bg1.png) no-repeat;
        }

        /* hover前面不能有空格 */
        .demo1:hover {
            background-image: url(../材料/bg11.png);

        }

        .demo2 {
            background: url(../材料/bg1.png) no-repeat;
        }

        .demo2:hover {
            background-image: url(../材料/bg11.png);

        }

        .demo3 {
            background: url(../材料/bg1.png) no-repeat;
        }

        .demo3:hover {
            background-image: url(../材料/bg11.png);

        }

        .demo4 {
            background: url(../材料/bg1.png) no-repeat;
        }

        .demo4:hover {
            background-image: url(../材料/bg11.png);

        }
    </style>
</head>

<body>
    <a class="demo1" href="#">五彩导航</a>
    <a class="demo2" href="#">五彩导航</a>
    <a class="demo3" href="#">五彩导航</a>
    <a class="demo4" href="#">五彩导航</a>
</body>

</html>